﻿@using Model;
@using BLL;
@{
    ViewBag.Title = "一个程序员的学习笔记 | 麒麟";
    ReturnMessages_Page rm = ViewBag.mess;
    List<Blog> list= (List<Blog>)rm.rows;
    CategoryBLL catebll = new CategoryBLL();

    TagBLL tagbll = new TagBLL();
}
<section id="content">

    @foreach (var item in list)
    {
    <article class="hentry">
        <h2 class="entry-title"><a href="/html/@(item.blog_id).html" rel="bookmark">@item.blog_title</a></h2>
        <div class="entrymeta">
            <p>
                <i class="fa fa-user"></i>
                <span>@item.mem_name</span>
                <i class="fa fa-calendar"></i>
                <span>@item.blog_strtime</span>
                <i class="fa fa-share-alt"></i>
                <span>
                    @Html.Raw(catebll.GetCateName(item.blog_cate))
                </span>
                <i class="fa fa-tags"></i>
                <span>
                    @Html.Raw(tagbll.GetTagName(item.blog_tags))
                </span>
            </p>
        </div>
        @Html.Raw(item.blog_subtitle)
        <div class="clear"></div>
    </article>
    }



    <nav class="post-navigation">
        <div>
            <ul>
                <li><a href='@ViewBag.prepage' title="上一页"><i class="fa fa-long-arrow-left fa-3"></i></a></li>
                <li><a href='@ViewBag.nexpage' title="下一页"><i class="fa fa-long-arrow-right fa-3"></i></a></li>
            </ul>
        </div>
        <div class="clear"></div>
    </nav>
</section>
 